<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        let data1 = Symbol("aa");
        let data2 = Symbol("aa");
        console.log(data1 == data2);

        let mySet = new Set([1, 2, 3, 3, 2, 2, 3, 4, 3, 1, 1, 32, 3]);
        console.log([...mySet]); //把去重后的set通过展开运算符展开为 数组
        //set的值是唯一的不可能出现重复的值 所以可以用来数组去重

        let myMap = new Map();
        myMap.set(1, "小明");
        myMap.set([1, 2, 3], "小明");
        console.log(myMap);
        //map是一个键值对结构 对象也是 跟对象的区别是 key值可以是任意类型的数据
    </script>
</body>

</html>